package tgc.edu.demo.jkxt.entity;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnore;

import tgc.edu.demo.jkxt.custom.BaseEntity;

@Entity
@Table(name = "xuanxiang")
public class Xuanxaing extends BaseEntity<Integer>{
	
	private String xuanxiang;
	private List<Question> question;
	
	
	
	public String getXuanxiang() {
		return xuanxiang;
	}

	public void setXuanxiang(String xuanxiang) {
		this.xuanxiang = xuanxiang;
	}


	@JsonIgnore
	@ManyToMany(mappedBy = "xuanxiang")
	public List<Question> getQuestion() {
		return question;
	}
	
	public void setQuestion(List<Question> question) {
		this.question = question;
	}

	@Override
	public String toString() {
		return "Option [xuanxiang=" + xuanxiang + ", question=" + question + "]";
	}
	
	
	

}
